package com.wentao.thisService.mapper;

import com.wentao.thisService.model.FileEntity;
import com.wentao.thisService.model.entities.IntResultEntity;
import com.wentao.thisService.model.entities.PageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface FileDao {

	public List<FileEntity> Search(FileEntity entity);
    public List<FileEntity> SearchPage(@Param("entityItem") FileEntity entityItem, @Param("pageItem") PageEntity pageItem);
    public void Update(@Param("entityItem") FileEntity entity, @Param("valueItem") FileEntity val);
    public void Insert(FileEntity entity);
    public List<FileEntity> SearchAut(FileEntity entity);

    public List<FileEntity> SearchPageAut(@Param("entityItem") FileEntity entityItem, @Param("pageItem") PageEntity pageItem);
    public void UpdateAut(@Param("entityItem") FileEntity entity, @Param("valueItem") FileEntity val);
    public IntResultEntity Count(FileEntity entity);

    public IntResultEntity CountAut(FileEntity entity);

    /**
     * 根据id更新
     * @param entity 更新信息封装
     */
    public void UpdateById(FileEntity entity);
}